import { defineStore } from 'pinia';
import type { UserCartType } from '@/core/models';

export const useCartStore = defineStore('cart', {
	state: () : UserCartType => {
		return {
			cartNum: 0,
		};
	},
	actions: {
		setCartNum(data : number) {
			this.cartNum = data;
		},
	},
});